<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
    <script src="js/jquery-3.2.1.min.js"></script>
    <style>
        .one{
            display: flex;
            justify-content: space-around;
            padding-top: 10px;
            padding-bottom: 10px;
        }
        /**.one ul{
            list-style: none;
        }
        .one ul li{
            display: inline-block;
            padding-left: 20px;
        }
        .one ul li a{
            color: black;
            text-decoration: none;
        }
        .one ul li a:hover{
            color: blue;
        }*/
        .one ul{
           margin: 0;
           padding: 0;
        }
        .one ul li{
            display: block;
            padding: 10px 0;
            border-bottom: 1px white;
        }
        .one ul li a{
            color: black;
            text-decoration: none;
        }
        .one ul li a:hover{
            color: blue;
        }
        .phone{
            width: 40px;
            height: 40px;
            border: 1px solid cadetblue;
            border-radius: 3px;
            cursor: pointer;
            margin-top: 5px;
            text-align: center;
            font-size: 30px;
            color: slategray;
            display: none;
        }
        .one nav{
            position: absolute;
            top:70px;
            right: 0;
            width: 50%;
            text-align: center;
            background: cyan;
            display: none;
        }
        @media  (max-width:480px) {
            .one{
                justify-content: space-between;
            }
            .phone{
                display: block;
            }
            .last a{
                display: inline;
            }
    }
    

    </style>
    <script>
        $(function(){
            $(".phone").click(function(){
                $(".one nav").slideToggle();
            })
            $(window).resize(function(){
                if($(this).width()>480){
                    $(".one nav").show();
                }
            })
        })
    </script>
</head>
<body>
    <header>
        <div class="one">
            <div><img src="img/logo.png" alt=""></div>
            <nav>
                <ul>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">签证指南</a></li>
                    <li><a href="#">签证加急</a></li>
                    <li><a href="#">签证服务</a></li>
                    <li class="last"><a href="#">签证资讯</a></li>
                    <li class="last"><a href="#">资料下载</a></li>
                </ul>
            </nav>
            <div class="phone">
                <i class="fa fa-bars"></i>
            </div>
        </div>
    </header>
</body>
</html>